package com.ap.core.domain;

import com.ap.core.cxf.jaxb.requestorigin.DeviceOSType;
import org.hibernate.annotations.TypeDef;

import javax.persistence.*;

/**
 * User: Rohit.Dixit
 */
@Entity
@Table(name = "T_DEVICE_APP_INTENT")
@AttributeOverride(name = "id",column = @Column(name ="DEVICE_APPINTENT_ID"))
@TypeDef(name = "id",   typeClass = Long.class)
public class DeviceAppIntent extends Identifiable<Long>{

    private static final long serialVersionUID = -5502969252123694872L;

	@Column(name = "DEVICE_OS")
    @Enumerated(EnumType.STRING)
    private DeviceOSType deviceOs;
    
    @Column(name = "OS_VERSION")
    private String osVersion;

    @Column(name = "APP_INTENT")
    private String appIntent;
    
    private DeviceAppIntent(){}

    public DeviceAppIntent(Long deviceAppIntentId, DeviceOSType deviceOs,String osVersion,String appIntent) {
    	this.id = deviceAppIntentId;
        this.deviceOs = deviceOs;
        this.osVersion = osVersion;
        this.appIntent = appIntent;
    }



	public DeviceOSType getDeviceOs() {
		return deviceOs;
	}



	public void setDeviceOs(DeviceOSType deviceOs) {
		this.deviceOs = deviceOs;
	}



	public String getOsVersion() {
		return osVersion;
	}



	public void setOsVersion(String osVersion) {
		this.osVersion = osVersion;
	}



	public String getAppIntent() {
		return appIntent;
	}



	public void setAppIntent(String appIntent) {
		this.appIntent = appIntent;
	}


	

	
}
